

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>dsymutil - manipulate archived DWARF debug symbol files &#8212; LLVM 9 documentation</title>
    <link rel="stylesheet" href="../_static/llvm-theme.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
    <script src="../_static/jquery.js"></script>
    <script src="../_static/underscore.js"></script>
    <script src="../_static/doctools.js"></script>
    <script src="../_static/language_data.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="llvm-mca - LLVM Machine Code Analyzer" href="llvm-mca.html" />
    <link rel="prev" title="llvm-dwarfdump - dump and verify DWARF debug information" href="llvm-dwarfdump.html" />
<style type="text/css">
  table.right { float: right; margin-left: 20px; }
  table.right td { border: 1px solid #ccc; }
</style>

  </head><body>
<div class="logo">
  <a href="../index.html">
    <img src="../_static/logo.png"
         alt="LLVM Logo" width="250" height="88"/></a>
</div>

    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="llvm-mca.html" title="llvm-mca - LLVM Machine Code Analyzer"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="llvm-dwarfdump.html" title="llvm-dwarfdump - dump and verify DWARF debug information"
             accesskey="P">previous</a> |</li>
  <li><a href="http://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li>
  <li><a href="../index.html">Documentation</a>&raquo;</li>

          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">LLVM Command Guide</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">dsymutil - manipulate archived DWARF debug symbol files</a></li> 
      </ul>
    </div>


    <div class="document">
      <div class="documentwrapper">
          <div class="body" role="main">
            
  <div class="section" id="dsymutil-manipulate-archived-dwarf-debug-symbol-files">
<h1>dsymutil - manipulate archived DWARF debug symbol files<a class="headerlink" href="#dsymutil-manipulate-archived-dwarf-debug-symbol-files" title="Permalink to this headline">¶</a></h1>
<div class="section" id="synopsis">
<h2>SYNOPSIS<a class="headerlink" href="#synopsis" title="Permalink to this headline">¶</a></h2>
<div class="line-block">
<div class="line"><strong class="program">dsymutil</strong> [<em>options</em>] <em>executable</em></div>
</div>
</div>
<div class="section" id="description">
<h2>DESCRIPTION<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">dsymutil</strong> links the DWARF debug information found in the object files
for an executable <em>executable</em> by using debug symbols information contained in
its symbol table. By default, the linked debug information is placed in a
<code class="docutils literal notranslate"><span class="pre">.dSYM</span></code> bundle with the same name as the executable.</p>
</div>
<div class="section" id="options">
<h2>OPTIONS<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
<dl class="std option">
<dt id="cmdoption-dsymutil-arch">
<code class="sig-name descname">--arch</code><code class="sig-prename descclassname">=&lt;arch&gt;</code><a class="headerlink" href="#cmdoption-dsymutil-arch" title="Permalink to this definition">¶</a></dt>
<dd><p>Link DWARF debug information only for specified CPU architecture types.
Architectures may be specified by name. When using this option, an error will
be returned if any architectures can not be properly linked.  This option can
be specified multiple times, once for each desired architecture. All CPU
architectures will be linked by default and any architectures that can’t be
properly linked will cause <strong class="program">dsymutil</strong> to return an error.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-dump-debug-map">
<code class="sig-name descname">--dump-debug-map</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-dump-debug-map" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the <em>executable</em>’s debug-map (the list of the object files containing the
debug information) in YAML format and exit. Not DWARF link will take place.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-f">
<span id="cmdoption-dsymutil-flat"></span><code class="sig-name descname">-f</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--flat</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-f" title="Permalink to this definition">¶</a></dt>
<dd><p>Produce a flat dSYM file. A <code class="docutils literal notranslate"><span class="pre">.dwarf</span></code> extension will be appended to the
executable name unless the output file is specified using the -o option.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-z">
<span id="cmdoption-dsymutil-minimize"></span><code class="sig-name descname">-z</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--minimize</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-z" title="Permalink to this definition">¶</a></dt>
<dd><p>When used when creating a dSYM file, this option will suppress the emission of
the .debug_inlines, .debug_pubnames, and .debug_pubtypes sections since
dsymutil currently has better equivalents: .apple_names and .apple_types. When
used in conjunction with –update option, this option will cause redundant
accelerator tables to be removed.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-no-odr">
<code class="sig-name descname">--no-odr</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-no-odr" title="Permalink to this definition">¶</a></dt>
<dd><p>Do not use ODR (One Definition Rule) for uniquing C++ types.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-no-output">
<code class="sig-name descname">--no-output</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-no-output" title="Permalink to this definition">¶</a></dt>
<dd><p>Do the link in memory, but do not emit the result file.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-no-swiftmodule-timestamp">
<code class="sig-name descname">--no-swiftmodule-timestamp</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-no-swiftmodule-timestamp" title="Permalink to this definition">¶</a></dt>
<dd><p>Don’t check the timestamp for swiftmodule files.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-j">
<span id="cmdoption-dsymutil-num-threads"></span><code class="sig-name descname">-j</code><code class="sig-prename descclassname"> &lt;n&gt;</code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--num-threads</code><code class="sig-prename descclassname">=&lt;n&gt;</code><a class="headerlink" href="#cmdoption-dsymutil-j" title="Permalink to this definition">¶</a></dt>
<dd><p>Specifies the maximum number (<code class="docutils literal notranslate"><span class="pre">n</span></code>) of simultaneous threads to use when
linking multiple architectures.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-o">
<code class="sig-name descname">-o</code><code class="sig-prename descclassname"> &lt;filename&gt;</code><a class="headerlink" href="#cmdoption-dsymutil-o" title="Permalink to this definition">¶</a></dt>
<dd><p>Specifies an alternate <code class="docutils literal notranslate"><span class="pre">path</span></code> to place the dSYM bundle. The default dSYM
bundle path is created by appending <code class="docutils literal notranslate"><span class="pre">.dSYM</span></code> to the executable name.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-oso-prepend-path">
<code class="sig-name descname">--oso-prepend-path</code><code class="sig-prename descclassname">=&lt;path&gt;</code><a class="headerlink" href="#cmdoption-dsymutil-oso-prepend-path" title="Permalink to this definition">¶</a></dt>
<dd><p>Specifies a <code class="docutils literal notranslate"><span class="pre">path</span></code> to prepend to all debug symbol object file paths.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-papertrail">
<code class="sig-name descname">--papertrail</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-papertrail" title="Permalink to this definition">¶</a></dt>
<dd><p>When running dsymutil as part of your build system, it can be desirable for
warnings to be part of the end product, rather than just being emitted to the
output stream. When enabled warnings are embedded in the linked DWARF debug
information.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-s">
<span id="cmdoption-dsymutil-symtab"></span><code class="sig-name descname">-s</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--symtab</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-s" title="Permalink to this definition">¶</a></dt>
<dd><p>Dumps the symbol table found in <em>executable</em> or object file(s) and exits.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-toolchain">
<code class="sig-name descname">--toolchain</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-toolchain" title="Permalink to this definition">¶</a></dt>
<dd><p>Embed the toolchain in the dSYM bundle’s property list.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-u">
<span id="cmdoption-dsymutil-update"></span><code class="sig-name descname">-u</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--update</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-u" title="Permalink to this definition">¶</a></dt>
<dd><p>Update an existing dSYM file to contain the latest accelerator tables and
other DWARF optimizations. This option will rebuild the ‘.apple_names’ and
‘.apple_types’ hashed accelerator tables.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-v">
<span id="cmdoption-dsymutil-verbose"></span><code class="sig-name descname">-v</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--verbose</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-v" title="Permalink to this definition">¶</a></dt>
<dd><p>Display verbose information when linking.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-version">
<code class="sig-name descname">--version</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-version" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the version of the tool.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-dsymutil-y">
<code class="sig-name descname">-y</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-dsymutil-y" title="Permalink to this definition">¶</a></dt>
<dd><p>Treat <em>executable</em> as a YAML debug-map rather than an executable.</p>
</dd></dl>

</div>
<div class="section" id="exit-status">
<h2>EXIT STATUS<a class="headerlink" href="#exit-status" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">dsymutil</strong> returns 0 if the DWARF debug information was linked
successfully. Otherwise, it returns 1.</p>
</div>
<div class="section" id="see-also">
<h2>SEE ALSO<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
<p><em class="manpage"><a class="manpage reference external" href="https://llvm.org/docs/CommandGuide/llvm-dwarfdump.html">llvm-dwarfdump(1)</a></em></p>
</div>
</div>


            <div class="clearer"></div>
          </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="llvm-mca.html" title="llvm-mca - LLVM Machine Code Analyzer"
             >next</a> |</li>
        <li class="right" >
          <a href="llvm-dwarfdump.html" title="llvm-dwarfdump - dump and verify DWARF debug information"
             >previous</a> |</li>
  <li><a href="http://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li>
  <li><a href="../index.html">Documentation</a>&raquo;</li>

          <li class="nav-item nav-item-1"><a href="index.html" >LLVM Command Guide</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">dsymutil - manipulate archived DWARF debug symbol files</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2003-2020, LLVM Project.
      Last updated on 2020-09-20.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.
    </div>
  </body>
</html>